//
// Created by 雷欧 on 0009 2022/11/9.
//

#include "test.h"
#include "stdio.h"

#define ERROR 0
int main3(){

//    const float pi = 3.1415926;
//    float r = 2;
//    float s = pi*r*r;
//    float z = 2*pi*r;
//    printf("%.2f\n",s);
//    printf("%f\n",z);
//    printf("---------------------------------\n");
//    //八进制
//    printf("%o\n",10);
//    //十六进制
//    printf("%x\n",10);

    //asi
    //0 = 48  a = 97  A = 65
    printf("%d",'0');
    char s;
    scanf("%c",&s);
    printf("%c",s-32);





    return 0;
}

int main2(){
    printf("\" \"");

    int i = 0;
    char *str = "hello world";
    printf("%s\n",str);
    printf("%llu", sizeof(str));
    while (str[i] != NULL){
        printf("%c\n",str[i]);
        i++;
    }

    printf("%d%%",5);
    printf("---------------------------------\n");
    for (int j = 1; j <= 97; ++j) {
        //不足两位前面补0，也可以是其他参数
        printf("%02d\n",j);
        putchar(j);
        printf("\n");
    }

    printf("%d\n",'a');

//    char arr[5] = {'h','e','l','l','o'};
//    printf("%s",arr[5]);
    char arr[] = "hello";
    printf("%s",arr);

    int k =0;
    //跳转
    for (int j = 0; j < 100; ++j) {

        if(j >= 10 && j <= 50){
            goto FLAG;
        }



    }

    for (k = 0; k < 10; ++k) {
        FLAG:
        printf("%d",k);
    }


    return 0;
}